package com.holly.unit.system.integration.modular.system.menu;

import com.holly.unit.scanner.api.annotation.ApiResource;
import com.holly.unit.scanner.api.annotation.GetResource;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;

/**
 * 菜单按钮管理界面
 *
 * @author holly
 * @date 2021/1/9 16:11
 */
@Controller
@ApiResource(name = "菜单按钮管理界面")
@Api(tags = "菜单按钮管理界面")
public class MenuButtonViewController {

    /**
     * 菜单按钮管理首页
     *
     * @author holly
     * @date 2021/1/9 16:13
     */
    @ApiOperation(value = "菜单管理首页" ,notes = "菜单管理首页")
    @GetResource(name = "菜单管理首页", path = "/view/menuButton")
    public String menuIndex() {
        return "/modular/system/menu/button.html";
    }

    /**
     * 新增菜单按钮界面
     *
     * @author holly
     * @date 2021/1/9 13:56
     */
    @ApiOperation(value = "新增菜单按钮界面" ,notes = "新增菜单按钮界面")
    @GetResource(name = "新增菜单按钮界面", path = "/view/menuButton/add")
    public String menuAdd() {
        return "/modular/system/menu/button_add.html";
    }

    /**
     * 修改菜单按钮界面
     *
     * @author holly
     * @date 2021/1/9 14:14
     */
    @ApiOperation(value = "修改菜单按钮界面" ,notes = "修改菜单按钮界面")
    @GetResource(name = "修改菜单按钮界面", path = "/view/menuButton/edit")
    public String menuEdit() {
        return "/modular/system/menu/button_edit.html";
    }

}
